﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spider.Entity;

namespace Spider.Spider
{
    public class GanjiSpider : SpiderBase
    {
        protected override string PageUriFormat(string pageUri, int pageIndex)
        {
            return string.Format(pageUri, (pageIndex - 1) * 25);
        }

        protected override string Format(string webSite, string matchUri)
        {
            return webSite.Substring(0, webSite.LastIndexOf("/")) + matchUri;
        }
    }
}
